CRIME DISTANCE VISUALISATION ON MAP BY DISTRICT
We will first observe the difference of crime by district
a4_dims = (20, 8.27)
fig, ax = pyplot.subplots(figsize=a4_dims)
plt.xlabel("District")
plt.ylabel("Incident number")
plt.title("Incident number by district")
sns.barplot(data=ind, x="NAME", y="INCIDENT_NUMBER");
We will now observe the number of crime on each district compared to their total population
sns.scatterplot(data=district, x="TOTAL_POP", y="NB_INCIDENTS",hue="NAME");
We can clearly see 2 group of district the one with high crime rate like Rowbury,Soouth End and the low crime rate like Charlestown. On the next slide we will display the crime on map by disctrict with an information on the distance to the police station to see if the high crimes district have a higer distribution of crime commited past a certain distance
maap_east_bo
maap_south_end